package yoursense.util;

import java.util.Comparator;

import yoursense.Bean.LV_Bean;

public class SortByScore implements Comparator {

	public int compare(Object o1, Object o2) {
		LV_Bean l1= (LV_Bean) o1;
		LV_Bean l2=(LV_Bean) o2;
		if(l1.getFood().getScore()<l2.getFood().getScore())
			return 1;
		return 0;
	}

}
